<?php require 'gauche.tpl.php';?>
    <div id="content">
        <div>     
            <h2>Garage <?php echo $clanInfo['name']?><img src="<?php echo $baseUri?>/images/filtre.png" alt="filtres" title="affiche/masque les fitres" id="showFilters" /><span><a href="#" id="showSkill" title="Afficher compétences"></a></span></h2>  
            <?php require_once 'clangarageaction.tpl.php';?>
            
            <div class="garage">
                <?php 
                foreach ($tanks as $compte => $tanksActif) { ?>
                    <h3><?php  echo $compte; ?></h3>
                    
                    <?php foreach($tanksActif as $tank) {
                    $premium = "";
                    if ($tank['premium'] === '1') {
                        $premium = "premium";
                    }?>     
                    <div class="bigtank <?php echo $tank['nation'].' '.$premium; ?>">
                        <span class="score"><?php echo $tank['score']?></span>
                        <img class="bigtank" src="<?php echo $tank['image'];?>" alt="<?php echo $tank['name']; ?>" title="<?php echo $tank['name']?>"/>                        
                        <div class="nomtank"><?php echo $tank['name']; ?></div>
                        <div class="skills">
                            <ul>
                        <?php foreach($tank['crew'] as $crew) {?>
                            <li>
                            <img src="<?php echo $crew['image']; ?>" alt="<?php echo $crew['role_id']?>" title="<?php echo $crew['role_id']?>" />
                            <?php foreach ($tank['skills'] as $skill) {?>
                                <?php if ($skill['crew_id'] === $crew['ordre']) {?>
                                    <img alt="<?php echo $skill['name']?>" title="<?php echo $skill['name']?> (<?php echo $skill['valeur']?>)" src="<?php echo $skill['image'];?>" />
                                <?php }?>
                            <?php }?>
                            </li>
                        <?php }?>
                            </ul>
                        </div>
                    </div>
                    <?php } 
                }?>
                </div>
        </div>      
    </div>    